package com.voicechat.firstmet.bean;

import com.google.gson.annotations.SerializedName;

/**
 * @ProjectName: FirstMet
 * @Package: com.voicechat.firstmet.bean
 * @ClassName: AlipayBean
 * @Description: 支付类bean
 * @Author: ljp
 * @CreateDate: 2019/1/8 13:57
 * @Version: 1.0
 */
public class AlipayBean {

    /**
     * code : 200
     * msg : 成功
     * map : {"orderStr":"alipay_sdk=alipay-sdk-java-3.4.27.ALL&app_id=2018112162267851&biz_content=%7B%22body%22%3A%22%E9%9A%90%E9%9A%90%E9%87%91%E5%B8%81%E5%85%85%E5%80%BC%22%2C%22out_trade_no%22%3A%22MD_15469260350543%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22subject%22%3A%22%E9%9A%90%E9%9A%90%E9%87%91%E5%B8%81%E5%85%85%E5%80%BC%22%2C%22timeout_express%22%3A%2230m%22%2C%22total_amount%22%3A%220.01%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay&notify_url=https%3A%2F%2Fwww.chujian.live%2Ffaint-service%2Ff%2Fali%2FgetNotifyForAPP&sign=WY4sxzLg8XnzYtP6oykxNLpzajP%2BDT244sTjWnlWovP8yWBX5oKUQymFIb3qG00T%2Bty5vvJwh2EMpdgwtXPXe%2FJWQm%2FOdbVJk1rGJ%2BgKmJuwn9vLuAaINZSxOgGHrTDyu9nKFodB1x9mSUsG5JAnZNCKz9FRvzQK6tn9RXNE94Mas6ZkYVj%2BlvL7JgIuqbAXG7wJbnhEMsU%2BecgLhKS5aVvq5XwYZUzaDxw2AthiWlhOHtRK3no9hCwIdo1vkGaQtNFx9i%2B4V35MQ30K6scfS084LAEL4DgWwUywuru5l6Cqct0vXkNRn9VrQjVGdPKKnX17c7m2r4EfLd3iVYpUuA%3D%3D&sign_type=RSA2&timestamp=2019-01-08+13%3A40%3A35&version=1.0"}
     */

    private int code;
    private String msg;
    private MapBean map;
    /**
     * object : {"timeStamp":"1547519903","package":"Sign=WXPay","appId":"wxac01dfc5b7f1a911","sign":"8829F35D68A849FB43C708008E80EA91","partnerid":"1515886761","prepayid":"wx15103822941980e6134990411499569168","nonceStr":"6WigTAIzsqIuynNoPkf3Y9nZ0WXQFxGP"}
     */

    private ObjectBean object;

    /**
     * object : {"timeStamp":"1547515260","package":"prepay_id=","paySign":"79EC5A09ACDBB8DC7362A03423F960BF","appId":"wxac01dfc5b7f1a911","signType":"MD5","nonceStr":"ea7yQ2N2Dy6rSHBIIgTqFIdaBkTHkjIS"}
     */


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public MapBean getMap() {
        return map;
    }

    public void setMap(MapBean map) {
        this.map = map;
    }

    public ObjectBean getObject() {
        return object;
    }

    public void setObject(ObjectBean object) {
        this.object = object;
    }


    public static class MapBean {
        /**
         * orderStr : alipay_sdk=alipay-sdk-java-3.4.27.ALL&app_id=2018112162267851&biz_content=%7B%22body%22%3A%22%E9%9A%90%E9%9A%90%E9%87%91%E5%B8%81%E5%85%85%E5%80%BC%22%2C%22out_trade_no%22%3A%22MD_15469260350543%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22subject%22%3A%22%E9%9A%90%E9%9A%90%E9%87%91%E5%B8%81%E5%85%85%E5%80%BC%22%2C%22timeout_express%22%3A%2230m%22%2C%22total_amount%22%3A%220.01%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay&notify_url=https%3A%2F%2Fwww.chujian.live%2Ffaint-service%2Ff%2Fali%2FgetNotifyForAPP&sign=WY4sxzLg8XnzYtP6oykxNLpzajP%2BDT244sTjWnlWovP8yWBX5oKUQymFIb3qG00T%2Bty5vvJwh2EMpdgwtXPXe%2FJWQm%2FOdbVJk1rGJ%2BgKmJuwn9vLuAaINZSxOgGHrTDyu9nKFodB1x9mSUsG5JAnZNCKz9FRvzQK6tn9RXNE94Mas6ZkYVj%2BlvL7JgIuqbAXG7wJbnhEMsU%2BecgLhKS5aVvq5XwYZUzaDxw2AthiWlhOHtRK3no9hCwIdo1vkGaQtNFx9i%2B4V35MQ30K6scfS084LAEL4DgWwUywuru5l6Cqct0vXkNRn9VrQjVGdPKKnX17c7m2r4EfLd3iVYpUuA%3D%3D&sign_type=RSA2&timestamp=2019-01-08+13%3A40%3A35&version=1.0
         */

        private String orderStr;
        private String orderName;

        public String getOrderName() {
            return orderName;
        }

        public String getOrderStr() {
            return orderStr;
        }

        public void setOrderStr(String orderStr) {
            this.orderStr = orderStr;
        }
    }

    @Override
    public String toString() {
        return "AlipayBean{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", map=" + map +
                '}';
    }


    public static class ObjectBean {
        /**
         * timeStamp : 1547519903
         * package : Sign=WXPay
         * appId : wxac01dfc5b7f1a911
         * sign : 8829F35D68A849FB43C708008E80EA91
         * partnerid : 1515886761
         * prepayid : wx15103822941980e6134990411499569168
         * nonceStr : 6WigTAIzsqIuynNoPkf3Y9nZ0WXQFxGP
         */

        private String timeStamp;
        @SerializedName("package")
        private String packageX;
        private String appid;
        private String sign;
        private String partnerid;
        private String prepayid;
        private String nonceStr;

        public String getTimeStamp() {
            return timeStamp;
        }

        public void setTimeStamp(String timeStamp) {
            this.timeStamp = timeStamp;
        }

        public String getPackageX() {
            return packageX;
        }

        public void setPackageX(String packageX) {
            this.packageX = packageX;
        }

        public String getAppId() {
            return appid;
        }

        public void setAppId(String appId) {
            this.appid = appId;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public String getPartnerid() {
            return partnerid;
        }

        public void setPartnerid(String partnerid) {
            this.partnerid = partnerid;
        }

        public String getPrepayid() {
            return prepayid;
        }

        public void setPrepayid(String prepayid) {
            this.prepayid = prepayid;
        }

        public String getNonceStr() {
            return nonceStr;
        }

        public void setNonceStr(String nonceStr) {
            this.nonceStr = nonceStr;
        }

        @Override
        public String toString() {
            return "ObjectBean{" +
                    "timeStamp='" + timeStamp + '\'' +
                    ", packageX='" + packageX + '\'' +
                    ", appId='" + appid + '\'' +
                    ", sign='" + sign + '\'' +
                    ", partnerid='" + partnerid + '\'' +
                    ", prepayid='" + prepayid + '\'' +
                    ", nonceStr='" + nonceStr + '\'' +
                    '}';
        }
    }
}
